<template>
  <div>
      <div class="topNavBar">
        <div class="topNavBarCon">
            <div class="topNavBarLeft">
                <img src="../../../static/img/bigData4/logo.png" style="width:133px;height:24px">
                <div class="topNavBarRight">
                    <img class="topNavBarRightIcon" src="../../../static/img/bigData4/user.png">
                    <span class="adminName">{{tokenName}} </span>
                    <div class="adminLeftIcon"></div>
                    <span @click="getOut" class="adminOut">安全退出</span>
                </div>
            </div>
            <div class="topNavBarCenter">中浩德数据中心驾驶舱</div>
        </div>
     </div>
     <out ref="myModel"></out>
      <div class="bg4Con">
        <div class="indexBg">
            </div>
            <div>
                <div class="err_bg">
                    <div class="err_view">
                        <img src="../../../static/img/404mdpi.png">
                        <span class="err_text">哎呀！页面找不到了...</span>
                        <p class="err_button">
                            <span class="offMd" @click="err_back">返回首页</span>
                            <span class="onMd" @click="err_reload">刷新</span>
                        </p>
                    </div>
                </div>
            </div>
      </div>
  </div>
</template>

<script>
import { getTokenName } from "@/utils/auth";
import out from "@/components/model/index";
export default {
  data() {
    return {
      iconSvg: "width:100%;height:100%",
      no_error: false
    };
  },
  components: {
    out
  },
  computed: {
    tokenName() {
      return getTokenName();
    }
  },
  watch: {},
  methods: {
    // 退出
    getOut() {
      this.$refs.myModel.showModel();
    },
    err_back() {
      location.href = "/";
    },
    err_reload() {
      location.reload();
    }
  }
};
</script>
<style scoped>
.err_bg {
  display: flex;
  position: absolute;
  top: 160px;
  right: 60px;
  bottom: 0;
  left: 60px;
  z-index: 99;
  background: url("../../assets/404_images/404_backgroundmdpi.png") left top
    no-repeat;
  background-size: 100% 80%;
}
.err_view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 480px;
  margin: auto;
  margin-top: 110px;
}
.err_view img {
  width: 370px;
}
.err_text {
  font-size: 24px;
  color: #2ff0d2;
  margin-bottom: 50px;
}
.err_button {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.err_button span {
  display: inline-block;
  color: #2ff0d2;
  width: 185px;
  height: 68px;
  line-height: 68px;
  text-align: center;
  background: url("../../../static/img/bigData4/button_offmdpi.png") left top
    no-repeat;
  cursor: pointer;
}
.err_button span:hover {
  color: #000;
  background: url("../../../static/img/bigData4/button_onmdpi.png") left top
    no-repeat;
}

.adminName {
  margin-left: 6pt;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.indexBg {
  position: fixed;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
  top: 300px;
  width: 1920px;
  height: 1921px;
}
.adminOut {
  margin-left: 6pt;
  display: none;
  transition: display 0.5s;
  cursor: pointer;
}
.adminLeftIcon {
  margin-left: 6pt;
  background-image: url("../../../static/img/bigData4/arrow_right.png");
  transform: rotate(0deg);
  transition: transform 0.5s;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 8px;
  height: 14px;
}
.topNavBarRight {
  margin-right: 0;
  transition: margin-right 1s;
}
.topNavBarRight:hover .adminLeftIcon {
  transform: rotate(180deg);
}
.topNavBarRight:hover {
  margin-right: 10px;
}
.topNavBarRight:hover .adminOut {
  display: block;
}
.topNavBarRightIcon {
  width: 21px;
  height: 20px;
}
.topNavBarRight {
  color: #31cee6;
  display: flex;
  align-items: center;
}
.topNavBarCenter {
  color: #2ff0d2;
  text-align: center;
  width: 100%;
  margin-top: 100px;
  font-size: 28px;
  font-weight: bold;
  margin-top: 30px;
}
.topNavBarLeft {
  width: 94%;
  height: 24px;
  margin-top: 20px;
  margin-left: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topNavBarCon {
  background-image: url("../../../static/img/bigData4/topbar.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 1200px;
  height: 124px;
}
.topNavBar {
  width: 100%;
  display: flex;
  top: 0;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  position: fixed;
}

.bg4Con {
  position: absolute;
  top: 0px;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: 100% 100%;
  background-repeat:  no-repeat;
  width: 100%;
  height: 1080px;
}
</style>